package com.my.bigsite.common.activiti.bpm.listener;

import java.util.List;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.el.ExpressionManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.my.bigsite.common.activiti.bpm.expr.ExprProcessor;
import com.my.bigsite.common.activiti.support.DefaultTaskListener;

public class TaskConfTaskListener extends DefaultTaskListener implements
ExprProcessor{
	private static Logger logger = LoggerFactory
            .getLogger(TaskConfTaskListener.class);
    @Override
    public void onCreate(DelegateTask delegateTask) throws Exception {
    	logger.info("接收到create事件");
    	 String businessKey = delegateTask.getExecution()
                 .getProcessBusinessKey();
         String taskDefinitionKey = delegateTask.getTaskDefinitionKey();

         ExpressionManager expressionManager = Context
                 .getProcessEngineConfiguration().getExpressionManager();
    }
	
	@Override
	public List<String> process(List<String> left, List<String> right, String operation) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<String> process(String text) {
		// TODO Auto-generated method stub
		return null;
	}

}
